package com.winter.main.service.system;


import com.winter.main.model.dto.NavigationDto;
import com.winter.main.model.entity.SysRule;
import com.winter.main.model.entity.SysUser;

import java.util.List;

/**
 * Desc:
 * Author: dushuang
 * Date: Create in 2018/4/18
 */
public interface SysRuleService {

    /**
     * 查询用户权限
     * @param user
     * @return
     * @throws Exception
     */
    List<SysRule> selectRuleByUser(SysUser user) throws Exception;

    /**
     * 查询根节点菜单(rule_type 为 1)
     * @param user
     * @return
     */
    List<NavigationDto> selectRootRule(SysUser user);

    /**
     * 查询除去根节点的菜单(rule_type 为 1)
     * @param user
     * @return
     */
    List<NavigationDto> selectChildRuleWithoutRoot(SysUser user);


}
